1. способ
def f(x,y):
    if y==0:
        return x
    else:
        return f(y,x%y)
print(f(8,1))

2. import math 
math.gcd(0, 48)

